package com.meida.module.bus.client.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.NoArgsConstructor;

/**
 * 学霸认证审核状态
 *
 * @author gp
 * @date 2021/8/9
 */
@NoArgsConstructor
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ApiModel("学霸认证审核状态")
public enum ScholarTyrantCheckStateEnum {
    /**
     * 学霸认证审核状态
     */
    waitCheck(0, "审核中"),
    checkPass(1, "审核通过"),
    checkFail(2, "审核未通过");

    @EnumValue
    private Integer value;
    private String label;

    ScholarTyrantCheckStateEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }


    public void setValue(Integer value) {
        this.value = value;
    }

    public Integer getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }


    public static ScholarTyrantCheckStateEnum getByValue(Integer value) {
        for (ScholarTyrantCheckStateEnum scholarTyrantCheckStateEnum : values()) {
            if (scholarTyrantCheckStateEnum.getValue() == value) {
                return scholarTyrantCheckStateEnum;
            }
        }
        return null;
    }
}
